<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户登录</title>
    <style>a{TEXT-DECORATION:none}</style>
</head>
<body>
<div style="text-align: center">
<h2>用户登录</h2>
<%
    String loginMsg = (String) request.getAttribute("loginMsg");
    if (loginMsg != null) {
%>
<p style="color:red;"><%=loginMsg%></p>
<% } %>
<div style="text-align: center">
<form action="login" method="post"autocomplete="off">
    用户名：<input type="text" name="username" autocomplete="new-password"> <br>

    密码：  <input type="password" name="password" autocomplete="new-password"><br>

    <input type="submit" value="立即登录">
</form>
</div>
<p>没有账号？<a href="register.jsp">立即注册</a></p><br>
    <p>手滑了？<a href="home.jsp">返回首页</a></p>
</div>
</body>
</html>